<template>
    <div class="bottom" style="z-index:9999;">
        <div class="bottomMenu">
            <ul style="left: 0px;">
                <li class="li1"></li>
                <li class="li2 jp"></li>
                <li class="li3"></li>
                <li class="li4"></li>
                <li class="li5"></li>
            </ul>
        </div>
        <div class="UserO" :class="{ toolMenuHide: !showMenu }" @click="onHide">&nbsp;{{ResourceID}}</div>
    </div>
</template>
<script>
export default {
    name: 'stTool',
    props: ["ResourceID"],
    data() {
        return {
            showMenu: true
        }
    },
    methods: {
        onHide() {
            var _this = this
            _this.showMenu = !_this.showMenu
            $('.bottomMenu>ul').animate({ 'left': _this.showMenu ? '0px' : '700px' }, 500)
        }
    }
}
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
.bottom {
    height: 78px;
    width: 510px;
    position: fixed;
    bottom: 0;
    right: 0.5%;
    overflow: hidden;
    z-index: 10000;
}

.UserO {
    position: absolute;
    right: 0;
    top: 0px;
    height: 77px;
    width: 78px;
    cursor: pointer;
    background-size: 100% 100%;
    background-image: url('../../../../assets/01.png');
    color: white;
}

.toolMenuHide {
    background-image: url('../../../../assets/02.png');
}

.bottomMenu {
    position: relative;
    top: 1px;
    height: 75px;
    width: 480px;
    overflow: hidden;
    margin-right: 39px;
}

.bottomMenu ul {
    display: block;
    height: 75px;
    width: 700px;
    background-size: 100% 100%;
    background-image: url("../../../../assets/toolBg.png");
    position: relative;
}

ul,
li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bottomMenu li:first-child {
    margin-left: 15px;
}

.bottomMenu li {
    list-style-type: none;
    float: left;
    height: 50px;
    cursor: pointer;
    margin-top: 14px;
    margin-left: 15px;
}

.li1 {
    width: 70px;
    background-image: url("../../../../assets/dianzhan02.png");
}

.li2 {
    width: 68px;
    background-image: url("../../../../assets/jianpan02.png");
}

.li3 {
    width: 68px;
    background-image: url("../../../../assets/xiangji02.png");
}

.li4 {
    width: 68px;
    background-image: url("../../../../assets/jushou02.png");
}

.li5 {
    width: 68px;
    background-image: url("../../../../assets/youyiwen02.png");
}
</style>